package nc.ui.pf.changedir;

import nc.ui.pf.change.VOConversionUI;
import nc.vo.pf.change.UserDefineFunction;

public class CHGF2TOF3 extends VOConversionUI {


    public CHGF2TOF3()
    {
    	super();
    }

    public String getAfterClassName()
    {
        return "nc.vo.arap.change.VoChangeInner";
    }
//    public String[] getAssign(){
//    	return new String[]{"H_lrr->SYSOPERATOR",
//    			"H_djrq->SYSDATE",   
//        		"H_djlxbm->DESTBILLTYPE"};
//    }
    public String[] getField()
    {
        return (new String[] {
        	"H_lrr->SYSOPERATOR",
            "H_djrq->SYSDATE",   "B_pjh->B_pjh","B_notetype->B_notetype","B_pj_jsfs->B_pj_jsfs",
            "H_djlxbm->DESTBILLTYPE",  //"H_xslxbm->H_xslxbm",   
            "B_bfyhzh->B_dfyhzh", "B_pk_invcl->B_pk_invcl",
            "B_facardbh->B_facardbh", "B_fkyhmc->B_fkyhmc",
            "H_dwbm->H_dwbm", //"H_kmbm->H_kmbm", 
            "H_scomment->H_scomment", 
            "B_jsfsbm->H_djlxbm", "B_skyhmc->B_skyhmc", "B_zy->B_zy", "B_zrdeptid->B_zrdeptid", 
            //"B_kmbm->B_kmbm", 
            "B_cinventoryid->B_cinventoryid",  
            "B_kslb->B_kslb", "B_hbbm->B_hbbm", "B_pk_jobobjpha->B_pk_jobobjpha",
            //"B_chbm_cl->B_chbm_cl", 
            "B_bzbm->B_bzbm", //"B_cashitem->B_cashitem",
           
            "B_dfyhzh->B_bfyhzh","B_deptid->B_deptid", 
            "B_usedept->B_usedept", "B_sanhu->B_sanhu","B_ddlx->B_vouchid","B_ddhh->B_fb_oid",                        
            "H_bbje->H_bbje", "H_fbje->H_fbje", "H_ybje->H_ybje",              
            "B_jfybje->B_dfybje", "B_jfbbje->B_dfbbje", "B_jffbje->B_dffbje",            
            "B_jfybsj->B_dfybsj",  "B_jfbbsj->B_dfbbsj", "B_jffbsj->B_dffbsj",            
            "B_jfybwsje->B_dfybwsje", "B_wbfbbje->B_dfbbwsje", "B_wbfybje->B_wbffbje",
            "B_fbhl->B_fbhl", "B_bbhl->B_bbhl", 
            "B_sl->B_sl", "B_dj->B_dj","B_fb_oid->B_fb_oid",
            "B_bbye->B_bbye","B_fbye->B_fbye",  "B_ybye->B_ybye",        
            "H_zyx19->H_zyx19", "H_zyx18->H_zyx18", "H_zyx17->H_zyx17", 
            "H_zyx16->H_zyx16",  "H_zyx15->H_zyx15", "H_zyx14->H_zyx14", 
            "H_zyx13->H_zyx13", "H_zyx12->H_zyx12", "H_zyx11->H_zyx11", "H_zyx10->H_zyx10",             
            "H_zyx30->H_zyx30", "H_zyx9->H_zyx9", "H_zyx8->H_zyx8", "H_zyx7->H_zyx7",
            "H_zyx6->H_zyx6", "H_zyx5->H_zyx5", "H_zyx4->H_zyx4", 
            "H_zyx3->H_zyx3", "H_zyx2->H_zyx2", "H_zyx1->H_zyx1",
            "H_zyx29->H_zyx29", "H_zyx28->H_zyx28", "H_zyx27->H_zyx27", 
            "H_zyx26->H_zyx26", "H_zyx25->H_zyx25", "H_zyx24->H_zyx24", "H_zyx23->H_zyx23", "H_zyx22->H_zyx22",
            "H_zyx21->H_zyx21", "H_zyx20->H_zyx20", "B_zyx29->B_zyx29", "B_zyx28->B_zyx28", "B_zyx27->B_zyx27",
            "B_zyx26->B_zyx26", "B_zyx25->B_zyx25", "B_zyx24->B_zyx24", "B_zyx23->B_zyx23", "B_zyx9->B_zyx9",
            "B_zyx22->B_zyx22", "B_zyx8->B_zyx8", "B_zyx21->B_zyx21", "B_zyx7->B_zyx7", 
            "B_zyx20->B_zyx20", "B_zyx6->B_zyx6", "B_zyx5->B_zyx5", "B_zyx4->B_zyx4", 
            "B_zyx3->B_zyx3", "B_zyx2->B_zyx2", "B_zyx1->B_zyx1","B_zyx11->B_zyx11",  "B_zyx10->B_zyx10", 
            "B_zyx19->B_zyx19", "B_zyx18->B_zyx18",  "B_zyx30->B_zyx30", "B_ywybm->B_ywybm",
            "B_zyx16->B_zyx16", "B_zyx15->B_zyx15", "B_zyx14->B_zyx14", "B_zyx13->B_zyx13", "B_zyx12->B_zyx12",
            "H_pzglh->H_pzglh","B_wldx->B_wldx","H_lybz->H_pzglh","B_occupationmny->B_dfybje",
            "B_wldx->B_wldx",
            "B_productline->B_productline"
        });
    }

    public String[] getFormulas()
    {
        return new String[]{
//        			"H_lrr->\"000185100000000006LT\"",
//        		"H_djrq->\"2008-07-28\"",
//        		"H_djlxbm->\"D2\"" ,
        		"H_xslxbm->iif(DESTBUSITYPE==null,H_xslxbm,DESTBUSITYPE)",
        		"H_pzglh->\"1\"",
//        		"B_wldx->\"1\"",
//              "B_jsfsbm->\"D\"",
//                "H_lybz->\"0\"",
        		 "H_prepay->\"N\"",
                 "H_djkjqj->getKJQJ( SYSDATE)",
                 "H_fj->1",
                 "H_djdl->\"fk\"",
                 "H_djkjnd->getKJND( SYSDATE ) ",
                 "H_qcbz->\"N\"",                 
                 "H_ywbm->getdjlx( H_dwbm,DESTBILLTYPE )",
                 "B_fx->-1",
                 "B_old_sys_flag->\"N\"",
                 "H_isselectedpay->1"
                    
                    };
    }

    public UserDefineFunction[] getUserDefineFunction()
    {
    	  try
          {
              UserDefineFunction userdefinefunction = new UserDefineFunction();
              userdefinefunction.setClassName("nc.bs.arap.change.PubchangeBO");
              userdefinefunction.setMethodName("getKJND");
              userdefinefunction.setReturnType(Class.forName("java.lang.String"));
              userdefinefunction.setArgTypes(new Class[] {
                  Class.forName("java.lang.String")
              });
              userdefinefunction.setArgNames(new String[] {
                  "&d3"
              });
              UserDefineFunction userdefinefunction1 = new UserDefineFunction();
              userdefinefunction1.setClassName("nc.bs.arap.change.PubchangeBO");
              userdefinefunction1.setMethodName("getKJQJ");
              userdefinefunction1.setReturnType(Class.forName("java.lang.String"));
              userdefinefunction1.setArgTypes(new Class[] {
                  Class.forName("java.lang.String")
              });
              userdefinefunction1.setArgNames(new String[] {
                  "&d3"
              });
              UserDefineFunction userdefinefunction2 = new UserDefineFunction();
              userdefinefunction2.setClassName("nc.bs.arap.change.PubchangeBO");
              userdefinefunction2.setMethodName("getdjlx");
              userdefinefunction2.setReturnType(Class.forName("java.lang.String"));
              userdefinefunction2.setArgTypes(new Class[] {
                  Class.forName("java.lang.String"), Class.forName("java.lang.String")
              });
              userdefinefunction2.setArgNames(new String[] {
                  "&corp", "&djlxbm"
              });
              UserDefineFunction auserdefinefunction[] = new UserDefineFunction[3];
              auserdefinefunction[0] = userdefinefunction;
              auserdefinefunction[1] = userdefinefunction1;
              auserdefinefunction[2] = userdefinefunction2;
              return auserdefinefunction;
          }
          catch(ClassNotFoundException classnotfoundexception)
          {
              classnotfoundexception.printStackTrace();
          }
          return null;
    }







}
